/*
 * Copyright (c) 田梓萱 2021-2022.
 * All Rights Reserved.
 * All codes are protected by China's regulations on the protection of computer software, and infringement must be investigated.
 * 版权所有 (c) 田梓萱 2021-2022.
 * 所有代码均受中国《计算机软件保护条例》保护，本项目已获得软著.
 */

package com.xcl.calculator.Ability.DanWeiCal;

import com.xcl.calculator.Preference_RW;
import com.xcl.calculator.XLog;
import com.xcl.calculator.slice.DanWeiCal.DWZH3AbilitySlice;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;
import ohos.agp.window.service.WindowManager;
import ohos.hiviewdfx.HiLog;
import ohos.hiviewdfx.HiLogLabel;

/**
 * The type Dwzh 3 ability.
 *
 * @author Xcl
 * @date 2022 /1/5
 * @package com.xcl.calculator.Ability.DanWeiCal
 */
public class DWZH3Ability extends Ability {
    /**
     * The constant label.
     */
    private static final HiLogLabel label = new HiLogLabel(HiLog.LOG_APP, 0x00234, "DWZH3Ability");

    /**
     * 开始
     *
     * @param intent the intent
     */
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        try {
            super.setAbilitySliceAnimator(null);
            super.setTransitionAnimation(0, 0);
            this.getWindow().addFlags(WindowManager.LayoutConfig.MARK_ALLOW_EXTEND_LAYOUT);
            super.setMainRoute(DWZH3AbilitySlice.class.getName());
            super.setTransitionAnimation(0, 0);
            super.setAbilitySliceAnimator(null);
        } catch (Exception e) {
            XLog.pd_pd = Preference_RW.ff7_r();
            XLog.error(label, e.getMessage());
        }
    }
}
